<template>
	<!-- 分销佣金 -->
	<view>
		<view class="header">
			<view class="nav">
				<view class="left">
					<view>累计佣金(元)</view>
					<text>0.01</text>
				</view>
				<view class="right" @tap="tixian">
					<button type="button">提现明细</button>
				</view>
			</view>
		</view>
		<view class="content">
			<block v-for="item in commission" :key="item.text">
				<view class="item">
					<view class="left">
						<image :src="item.src"></image>
						<text>{{item.text}}</text>
					</view>
					<view class="right">{{item.money}}</view>
				</view>
			</block>
			
		</view>
	    <view class="user">
			<label>用户须知</label>
			<view>
				<text class="text">用户须知用户须知用户须知用户须知用户须知用户须知知用户须用户须知用户须知用户须知用户须知用户须知用户须须知用户须 用户须知用</text>
			</view>
		</view>
		<view class="footer">
			<button type="button">我要提现</button>
		</view>
	</view>
</template>
<script>
export default {
	data(){
		return {
			// 佣金操作列表
			commission:[
				{
					src:require('@/static/yongjin/img1.png'),
					text:'可提现佣金',
					money:'0.00元'
				},
				{
					src:require('@/static/yongjin/img2.png'),
					text:'已申请佣金',
					money:'0.00元'
				},
				{
					src:require('@/static/yongjin/img3.png'),
					text:'待打款佣金',
					money:'0.00元'
				},
				{
					src:require('@/static/yongjin/img4.png'),
					text:'无效佣金',
					money:'0.00元'
				},
				{
					src:require('@/static/yongjin/img5.png'),
					text:'已提现佣金',
					money:'0.00元'
				},
				{
					src:require('@/static/yongjin/img6.png'),
					text:'待收货佣金',
					money:'0.00元'
				},
				{
					src:require('@/static/yongjin/img7.png'),
					text:'未结算佣金',
					money:'0.00元'
				}
			]
		}
	},
	methods:{
		tixian(){
			uni.navigateTo({
				url:"/pages/tixian/tixian"
			})
		}
	}
}
</script>
<style lang="scss">
.header {
	width: 100%;
	height: 232rpx;
	background: linear-gradient(180deg, #FF1414 0%, #FF7979 100%);
	border-top: 2rpx solid #e6e6e6;
	.nav {
		width: 660rpx;
		margin-top: 60rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		padding-left: 60rpx;
		padding-right: 30rpx;
		font-family: Source Han Sans CN;
		color: #FFFFFF;
		.left view {
			font-size: 32rpx;
			font-weight: bold;
		}
		.left text {
			font-size: 48rpx;
			font-weight: 400;
			margin-top: 30rpx;
		}
		.right button {
			width: 172rpx;
			height: 54rpx;
			line-height: 54rpx;
			border: 2rpx solid #FFFFFF;
			border-radius: 27rpx;	
			font-size: 28rpx;
			color: #FFFFFF;
			font-weight: 400;
			background: none;
		}
	}
}
.content {
	margin-top: 5rpx;
	.item {
		width: 670rpx;
		height: 98rpx;
		margin-top: 5rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding-left: 40rpx;
		padding-right: 40rpx;
		border-bottom: 6rpx solid #F4F4F4;
		font-family: Source Han Sans CN;
		font-weight: 400;
		.left {
			display: flex;
			flex-direction: row;
			align-items: center;
			text {
				margin-left: 20rpx;
				font-size: 28rpx;
				color: #141414;
			}
			image {
				width: 40rpx;
				height: 40rpx;
			}
		}
		.right {
			font-size: 28rpx;
			color: #F61B00;
		}
	}
}
.user {
	margin-top: 40rpx;
	padding: 0 40rpx;
	font-family: Source Han Sans CN;
	font-weight: 400;
	label {
		font-size: 28rpx;
		color: #141414;
	}
	.text {
		font-size: 24rpx;
		color: #999999;
	}
}
.footer button {
	width: 690rpx;
	height: 88rpx;
	line-height: 88rpx;
	background: #F61B00;
	border-radius: 1rpx;
	margin: 70rpx 30rpx 55rpx;
	font-size: 30rpx;
	font-family: Source Han Sans CN;
	font-weight: 500;
	color: #FFFFFF;
}
</style>
